export default [
  { path: "", redirect: "/home" },
  {
    path: "/home",
    component: () => import("@/layout/index.vue"),
    meta: { title: "首页" },
    redirect: "/home/screen",
    children: [
      {
        path: "screen",
        name: "首页大屏",
        component: () => import("@/views/Screen"),
      },
      {
        name: "变电所状态",
        path: "substationstatus",
        component: () => import("@/views/Substationstatus"),
      },

      {
        name: "运维中心",
        path: "operatecenter",
        component: () => import("@/views/Operatecenter"),
      },
    ],
  },
  {
    path: "/login",
    component: () => import("@/views/Login.vue"),
    meta: { icon: "Grid", title: "登录" },
  },
  {
    path: "/operatemanage",
    redirect: "/operatemanage/customplan",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "定制计划",
        path: "customplan",
        component: () => import("@/views/Customplan"),
      },
      {
        name: "巡视组别",
        path: "tourgroup",
        component: () => import("@/views/Tourgroup"),
      },
      {
        name: "巡检成员",
        path: "inspectionmember",
        component: () => import("@/views/Inspectionmember"),
      },
    ],
  },
  {
    path: "/systemset",
    redirect: "/systemset/usermanage",
    name: "系统设置",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "用户管理",
        path: "usermanage",
        component: () => import("@/views/Usermanage/index.vue"),
      },
      {
        name: "设备管理",
        path: "devicemanage",
        component: () => import("@/views/Devicemanage/index.vue"),
      },
      {
        name: "一级分类",
        path: "primarycateory",
        component: () => import("@/views/Primarycateory/index.vue"),
      },
      {
        name: "二级分类",
        path: "secondcateory",
        component: () => import("@/views/Secondcateory/index.vue"),
      },
      {
        name: "阈值设置",
        path: "thresholdset",
        component: () => import("@/views/Thresholdset/index.vue"),
      },
    ],
  },
  {
    path: "/elecanalyse",
    redirect: "/elecanalyse/elecreport",
    name: "用电分析",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "用电报表",
        path: "elecreport",
        component: () => import("@/views/Elecreport/index.vue"),
      },
      {
        name: "月能月报柱状图",
        path: "monthlychart",
        component: () => import("@/views/Monthlychart/index.vue"),
      },
      {
        name: "电力运行报表",
        path: "operationreport",

        component: () => import("@/views/Operationreport/index.vue"),
      },
    ],
  },
  {
    path: "/runenvironment",
    redirect: "/runenvironment/envirmonitor",
    name: "运行环境",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "环境监测",
        path: "envirmonitor",
        component: () => import("@/views/Envirmonitor"),
      },
      {
        name: "视频监控",
        path: "videomonitor",
        component: () => import("@/views/Videomonitor"),
      },
      {
        name: "环境温湿度",
        path: "envirhumidity",
        component: () => import("@/views/Envirhumidity/index.vue"),
      },
      {
        name: "仪表通讯状态",
        path: "panelstatus",
        component: () => import("@/views/Panelstatus/index.vue"),
      },
    ],
  },
  {
    path: "/quality",
    redirect: "/quality/harmonicmonitor",
    name: "电能质量",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "谐波监测",
        path: "harmonicmonitor",
        component: () => import("@/views/Harmonicmonitor"),
      },
    ],
  },
  {
    path: "/electricsafe",
    redirect: "/electricsafe/linemonitoring",
    name: "用电安全",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "线缆温度监测",
        path: "linemonitoring",
        component: () => import("@/views/Linemonitoring"),
      },
    ],
  },
  {
    path: "/electricmonitor",
    redirect: "/electricmonitor/disdiagram",
    name: "电力监测",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "配电图",
        path: "disdiagram",
        component: () => import("@/views/Disdiagram"),
      },
      {
        name: "采集点监测",
        path: "colpointmonitor",
        component: () => import("@/views/Colpointmonitor"),
      },
      {
        name: "历史数据",
        path: "historydata",
        component: () => import("@/views/Historydata"),
      },
    ],
  },
  {
    path: "/eventrecord",
    redirect: "/eventrecord/remote",
    name: "事件记录",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "遥信事件",
        path: "remote",
        component: () => import("@/views/Remote"),
      },
      {
        name: "越限事件",
        path: "exceed",
        component: () => import("@/views/Exceed"),
      },
      {
        name: "短信日志",
        path: "msglog",
        component: () => import("@/views/Msglog"),
      },
    ],
  },
];
export const asyncRoute = [];
